import $http from '@/assets/js/http'


//获取藏品列表
export function getGoodList(state,type,class1,pageIndex,pageSize){
	return $http.get('/manage/goods/check/list',{
	params:{
		state:state,
		type:type,
		categoryLevel1:class1,
		pageIndex:pageIndex,
		pageSize:pageSize
	}
	})
}
//获取藏品详情
export function getGoodDetail(goodsId){
	return $http.get('/manage/goods/detail',{
	params:{
            goodsId:goodsId
        }
	})
}
//设置每周精选
export function postSetFine(goodsId){
	return $http.post('/manage/goods/find/set',{
        goodsId:goodsId
	})
}
//取消设置每周精选
export function postCancelSetFine(goodsId){
	return $http.post('/manage/goods/fine/cancel',{
        goodsId:goodsId
	})
}
//设置精品推荐
export function postSetRe(goodsId){
	return $http.post('/manage/goods/recommend/set',{
		goodsId:goodsId
	})
}
//取消设置精品推荐
export function postCancelSetRe(goodsId){
	return $http.post('/manage/goods/recommend/cancel',{
		goodsId:goodsId
	})
}

//取消设置精品推荐
export function getClass1(categoryId){
	return $http.get('/manage/category/list',{
		params:{
			categoryId:categoryId
		}
		
	})
}

//下架上架藏品
export function postUnShelve(goodsId,state){
	return $http.post('/manage/goods/upOffline',{
		goodsId:goodsId,
		state:state
	})
}


//意见反馈管理，列表
export function getFeedList(pageIndex,pageSize){
	return $http.get('/manage/feedback/list',{
	params:{
		pageIndex:pageIndex,
		pageSize:pageSize
	}
	})
}